using System.Data.Entity.Migrations;

namespace Pyramid.Models.Migrations
{
	public partial class Log4Net : DbMigration
	{
		public override void Up()
		{
			CreateTable(
			            "dbo.ApplicationLogs",
			            c => new
			                 {
				                 Id = c.Int(false, true),
				                 Date = c.DateTime(false),
				                 Thread = c.String(maxLength: 255, unicode: false),
				                 Level = c.String(maxLength: 50, unicode: false),
				                 Logger = c.String(maxLength: 255, unicode: false),
				                 Message = c.String(maxLength: 4000, unicode: false),
				                 Exception = c.String(maxLength: 2000, unicode: false),
			                 })
				.PrimaryKey(t => t.Id);
		}

		public override void Down()
		{
			DropTable("dbo.ApplicationLogs");
		}
	}
}